diff --git a/sympy/sets/fancysets.py b/sympy/sets/fancysets.py
index 844c9ee9c1..d233533d41 100644
--- a/sympy/sets/fancysets.py
+++ b/sympy/sets/fancysets.py
@@ -43,7 +43,10 @@ def _contains(self, other):
         if not isinstance(other, Expr):
             return False
         if other.is_Number:
-            return other.is_Rational
+            if other.is_Rational:
+                return True
+            elif other.is_Float and other.is_finite:
+                return True
         return other.is_rational
 
     def __iter__(self):
